import requests

url = "http://127.0.0.1:8000/pdf_parse"
params = {
    "parse_method": "auto",
    "is_json_md_dump": True,
    "output_dir": "output"
}
files = {
    "pdf_file": open("城镇供热保温材料技术条件GBT39802-2021.pdf", "rb")
}

response = requests.post(url, params=params, files=files)
print(response.status_code)
print(response.json())